-
Notifications
You must be signed in to change notification settings - Fork 1k
Update the default expected exception in server tests #12555
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update the default expected exception in server tests #12555
Conversation
| void setupOptions() { | ||
| options.expectedServerSpanNameMapper = this::expectedServerSpanName; | ||
| options.expectedHttpRoute = this::expectedHttpRoute; | ||
| options.setExpectedException(new IllegalStateException(EXCEPTION.getBody())); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any reason you didn't change this in
Line 43 in 050e299
| Throwable expectedException = new Exception(EXCEPTION.body); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I missed this when looking for where it was configured, i'll update
| ) | ||
| // instrumentation does not create a span at all | ||
| options.disableTestNonStandardHttpMethod | ||
| options.setExpectedException( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd just make the scala and grails tests also throw IllegalStateException. The only one tests that could keep using are the old groovy tests, they'll get converted eventually anyway.
No description provided.